package com.service;


import com.entity.HyOrder;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: honye-fang
 * @description:
 * @author: Baiyyy
 * @create: 2025-02-14 22:00
 **/
public interface OrderService {
    //创建订单
    HyOrder createOrder(Long userId, Long furnitureId, Integer quantity);

    // 根据订单 ID 获取订单信息
    HyOrder getOrderById(Long orderid);

    // 根据用户 ID 获取订单列表
    List<HyOrder> getOrderByUserId(Long userId);

    //更新订单状态
    boolean updateOrderStatus(Long orderId, String status);

    //检查并取消超时订单
    void checkAndCancelTimeoutOrders();
}
